<?php
$app->get('/', ['as' => 'index', 'uses' => '\App\Http\Controllers\HomeController@index']);
$app->get('add', ['uses' => '\App\Http\Controllers\HomeController@add']);
$app->post('add', ['uses' => '\App\Http\Controllers\HomeController@add']);
$app->post('getContent', ['uses' => '\App\Http\Controllers\HomeController@getContent']);
$app->get('/env', function() use ($app) { return $app->environment();});

$app->get('/weipai',        ['uses' => '\App\Http\Controllers\Weipai\WeipaiController@index']);
$app->get('/weipai/import', ['uses' => '\App\Http\Controllers\Weipai\WeipaiController@import']);
$app->get('/weipai/see',    ['uses' => '\App\Http\Controllers\Weipai\WeipaiController@see']);
$app->post('/weipai/ajaxGetVideo', ['uses' => '\App\Http\Controllers\Weipai\WeipaiController@ajaxGetVideo']);
$app->post('/weipai/ajaxAddHeart', ['uses' => '\App\Http\Controllers\Weipai\WeipaiController@ajaxAddHeart']);

